Release 10.1A: OpenEdge Development:
Java Open Clients
Connecting to the AppServer
To establish a connection to an AppServer using the Java OpenAPI, you must instantiate a
com.progress.open4gl.javaproxy.OpenAppObject. You can create anOpenAppObjectusing one of the following constructors:
connectObjSpecifies a
com.progress.open4gl.javaproxy.Connectionobject, which defines connection parameters to access the AppServer. For more information on this object, see Chapter 3, " Connecting to an AppServer."appserviceSpecifies the name of the application service provided by the AppServer.
urlSpecifies the URL to connect to an Appserver URL. Defaults to
AppServer://localhost:5162/appService. For more information on the AppServer URL connection parameter format and default connection information, see the sections on connecting to an AppServer using a URL in OpenEdge Application Server: Developing AppServer Applications .useridSpecifies a user ID required to access the AppServer.
passwordSpecifies a password required to access the AppServer.
appserver-infoSpecifies information required by the application service at connection time.
You can set a number of session and run-time properties to manage access to an application service. For example, to access a session-free AppServer using the Java OpenAPI, you must set the proxy property
PROGRESS.Session.sessionModelto 1. For more information on setting this and other session properties see Chapter 7, " Accessing Proxy Properties.".
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |